<template>
	<view class="container">
		<view class="msg-list">
			<view class="item" @click="toDetail">
				<view class="time">
					2024年06月06日 14:00
				</view>
				<view class="msg-con">
					<view class="title one-row">
						消息标题消息标题消息标题消息标题
					</view>
					<view class="text more-row" :style="{'--row-num':2}">
						消息内容消息内容消息内容消息内容消息内容消息内容消息内容消息内容消息内容
					</view>
					<view class="img-box">
						<image :src="$img_path('/mall/2.png')" mode="widthFix"></image>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		methods:{
			toDetail(){
				uni.navigateTo({
					url:`/pagesMine/message/msgDetail/msgDetail`
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
.container{
	.msg-list{
		padding: 0 22rpx;
		box-sizing: border-box;
		.item{
			padding-top: 40rpx;
			display: flex;
			flex-direction: column;
			.time{
				width: 360rpx;
				height: 60rpx;
				background: #FFE8E8;
				border-radius: 30rpx;
				border: 2rpx solid #E72A2A;
				font-weight: 400;
				font-size: 26rpx;
				color: #E72A2A;
				line-height: 60rpx;
				text-align: center;
				margin: 0 auto;
			}
			.msg-con{
				background: #FFFFFF;
				border-radius: 20rpx;
				padding: 20rpx;
				box-sizing: border-box;
				margin-top: 20rpx;
				.title{
					font-weight: bold;
					font-size: 32rpx;
					color: #333333;
					line-height: 44rpx;
				}
				.text{
					font-weight: bold;
					font-size: 28rpx;
					color: #777777;
					line-height: 40rpx;
					margin-top: 10rpx;
				}
				.img-box{
					width: 100%;
					margin-top: 10rpx;
					image{
						width: 100%;
					}
				}
			}
		}
	}
}
</style>
